{extend name="common/base"/}
<!-- 主体 -->
{block name="body"}
<div class="layui-form p-4">
    <h3 class="pb-3">设备详情</h3>
    <table class="layui-table layui-table-form">
        <tr>
            <td class="layui-td-gray-2">IMEI</td>
            <td>{$detail.imei}</td>
            <td class="layui-td-gray-2">CCID</td>
            <td>{$detail.iccid}</td>
            <td class="layui-td-gray-2">设备软件版本</td>
            <td>{$detail.softversion}</td>
        </tr>
        <tr>
            <td class="layui-td-gray-2">设备硬件版本</td>
            <td>{$detail.hardversion}</td>
            <td class="layui-td-gray-2">设备状态</td>
            <td>
                {eq name="$detail.status" value="run"}运行中{/eq}
                {eq name="$detail.status" value="error"}故障{/eq}
                {eq name="$detail.status" value="leisure"}空闲{/eq}
            </td>
        </tr>
        <tr>
            <td class="layui-td-gray-2">剩余酒量(ml)</td>
            <td>{$detail.weight}</td>
            <td class="layui-td-gray-2">酒量状态</td>
            <td>
                {eq name="$detail.device_status" value="normal"}正常{/eq}
                {eq name="$detail.device_status" value="low liquor"}酒量不足{/eq}
            </td>
            <td class="layui-td-gray-2">创建时间</td>
            <td>{$detail.create_time}</td>
        </tr>
        <tr>
            <td class="layui-td-gray-2">售酒端</td>
            <td>{$detail.user_one_title}</td>
            <td class="layui-td-gray-2">售酒机管理员</td>
            <td>{$detail.user_two_title}</td>
            <td class="layui-td-gray-2">补酒员</td>
            <td>{$detail.user_three_title}</td>
        </tr>
        <tr>
            <td class="layui-td-gray-2">设备地址</td>
            <td colspan="5">{$detail.address}</td>
        </tr>
        <tr>
            <td class="layui-td-gray-2">设备二维码</td>
            <td>
                <a href="{$detail.wx_code}" target="_blank"><img style="width: 100px" src="{$detail.wx_code}" alt=""></a>
            </td>
        </tr>
    </table>
</div>
{/block}
<!-- /主体 -->